﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GrayParrot.Configuration;

namespace GrayParrot.Web.Security.Configuration
{
    public class SecuritySettings : ConfigurationSectionBase<SecuritySettings>
    {
        [ConfigurationProperty("noLoginRequired", DefaultValue = "true", IsRequired = false)]
        public bool NoLoginRequired { get { return (bool)this["noLoginRequired"]; } }

        [ConfigurationProperty("userNameWithoutDomain", DefaultValue = "false", IsRequired = false)]
        public bool UserNameWithoutDomain { get { return (bool)this["userNameWithoutDomain"]; } }

        [ConfigurationProperty("loginUrl", IsRequired = false)]
        public string LoginUrl { get { return (string)this["loginUrl"]; } }

        [ConfigurationProperty("applicationName", IsRequired = true)]
        public string ApplicationName { get { return (string)this["applicationName"]; } }

        [ConfigurationProperty("connectionStringName", IsRequired = true)]
        public string ConnectionStringName { get { return (string)this["connectionStringName"]; } }

        public SecuritySettings()
        {

        }
    }
}
